import java.util.ArrayList;

public class test2 {

    private int[] array = new int[5];
    private int usedSize = 5;
    public boolean contains(int toFind) {
        for (int i = 0; i < usedSize; i++) {
            if(array[i] == toFind) {
                return true;
            }
        }
        return false;
    }

    public int indexOf(int toFind) {
        for (int i = 0; i < usedSize; i++) {
            if(array[i] == toFind) {
                return i;
            }
        }
        return -1;//没有找到
    }

    ArrayList<Boolean> arrayList;
}
